#ifndef BSP_USART0_H
#define BSP_USART0_H

#include "bsp.h"

#define USART0_DMA_SIZE 512

typedef struct
{
    uint8_t rx_buf[USART0_DMA_SIZE];
    uint16_t rx_len;
} usart_dma_buf_t;

void bsp_usart0_dma_idle_init(void);
void bsp_usart0_tx(uint8_t *tx_buffer, uint16_t tx_len);
void bsp_usart0_test(void);

#endif
